package com.im.linving.imsdkbll;

import com.im.linving.apputils.functions.Action1;
import com.im.linving.apputils.functions.Action2;
import com.im.linving.imsdkdal.imsdk.IMMessegeAction;
import com.im.linving.imsdkdal.imsdk.nimImp.Nim_IMMessegeAction;

import java.io.File;

/**
 * @Author linyong
 * @Date 2016/11/1
 * @Time 15:27
 */
public class IMMessageBll {
    private IMMessegeAction messegeAction = new Nim_IMMessegeAction();

    public void sendTextMessge(String userId, String msgType, String msg , final Action1 success, final Action2 fail){
        messegeAction.sendTextMessge(userId,msgType,msg,success,fail);
    }
    public void sendImageMessage(String userId , String msgType , File file, String fileName, Action1 success, Action2 fail){
        messegeAction.sendImageMessage(userId,msgType,file,fileName,success,fail);
    }

    public void sendAudioMessage(String userId , String msgType , File file, long time, Action1 success, Action2 fail){
        messegeAction.sendAudioMessage(userId,msgType,file,time,success,fail);
    }

}
